home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / JZGETCUR.C < prev    next >
Text File  |  1989-04-09  |  790b  |  23 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │jzgetcur.c                                                                  │
  4. │Return the cursor location and size.                                        │
  5. │                                                                            │
  6. │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950                      │
  7. └────────────────────────────────────────────────────────────────────────────┘
  8. */
  9.  
  10. jzgetcur(frow,fcol,fstart,fend)
  11. int *frow,*fcol,*fstart,*fend;
  12. {
  13.  
  14.   union REGS winreg,woutreg;
  15.   winreg.h.bh = 0;            /* page 0 */
  16.   winreg.h.ah = 3;
  17.   int86(0x10,&winreg,&woutreg);
  18.   *fstart = woutreg.h.ch;
  19.   *fend   = woutreg.h.cl;
  20.   *frow   = woutreg.h.dh;
  21.   *fcol   = woutreg.h.dl;
  22. }
  23.